package com.wpen.unit.web.dto;

import java.io.Serializable;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import com.wpen.unit.commun.BaseRequest;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 执行器参数
 * 
 * @author Wang Peng
 * @date 2022-12-10
 */
@Schema(description = "执行器参数-请求")
@Data
@EqualsAndHashCode(callSuper = false)
public class ContextRequest extends BaseRequest implements Serializable {
    private static final long serialVersionUID = 3748013572408380531L;

    @Schema(description = "业务系统编号", required = true)
    @NotEmpty
    @Size(min = 0, max = 8)
    private String bizCode;
    @Schema(description = "批次编号", required = true)
    @NotEmpty
    private String batchCode;
    @Schema(description = "任务编号", required = true)
    @NotEmpty
    private String taskCode;
    @Schema(description = "任务ID", required = true)
    @NotNull
    private Long taskId;
    @Schema(description = "交易识别码", required = true)
    @NotNull
    private Long jobId;
    @Schema(description = "批次日期", required = true)
    @NotEmpty
    private String acctDate;
    @Schema(description = "命令", required = true)
    @NotEmpty
    private String cmd;
    @Schema(description = "业务参数")
    private String params;

}